﻿/// Write a program to convert binary numbers to their decimal representation.

using System;

namespace c_sh_II_lek_7_numeral
{
    class zad2
    {
        static void Main()
        {
            Console.WriteLine( Convert.ToInt32(Console.ReadLine(), 2) );
        }
    }
}
